package com.demo.cotroller;

import com.demo.bean.Student;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by wangzhanjin on 2018/6/8.
 */
@Controller
public class HomeController {

    @RequestMapping("/web")
    @ResponseBody
    public String hello() {
        Student student = new Student();
        student.setName("所谓伊人");
        return "黄河之水天上来" + student.toString();
    }
}
